#include <iostream>
#include <conio.h>
#include <string>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include "server.h"
#include "log.h"

void logInit();



int main()
{
	try
	{
		logInit();

		boost::asio::io_service ioService;

		boost::asio::ip::tcp::endpoint endPoint(boost::asio::ip::tcp::v4(),8454);

		jump::server::Server server(ioService,endPoint);

		server.run();

	}catch(std::exception& ex)
	{
		LOG_ERR("Exception :",ex.what());

	}

	LOG_INFO("End of Program");

	while(!kbhit()){}
	return 0;
}